{extend name="../../base/view/common/base" /}
<!-- 主体 -->
{block name="body"}
<form class="layui-form p-page">
	<h3 class="pb-3">奖罚信息</h3>
	<table class="layui-table layui-table-form">
		<tr>
			<td class="layui-td-gray">员工姓名</td>
			<td>{$detail.user_name|default=''}</td>
			<td class="layui-td-gray">奖惩类型</td>
			<td>
				{eq name="$detail.types" value="1"}<span class="green">奖励</span>{/eq}
				{eq name="$detail.types" value="2"}<span class="red">惩罚</span>{/eq}
			</td>
			<td class="layui-td-gray">当前状态</td>
			<td>
				{eq name="$detail.status" value="1"}<span class="green">『待执行』</span>{/eq}
				{eq name="$detail.status" value="2"}<span class="red">『已执行』</span>{/eq}
			</td>
		</tr>
		<tr>
			<td class="layui-td-gray">奖惩项目</td>
			<td>{$detail.cate}</td>
			<td class="layui-td-gray-2">奖惩金额(元)</td>
			<td>{$detail.cost}</td>
			<td class="layui-td-gray">奖惩日期</td>
			<td>{$detail.rewards_time}</td>
		</tr>
		<tr>
			<td class="layui-td-gray">奖惩物品</td>
			<td colspan="5">{$detail.thing}</td>
		</tr>
		<tr>
			<td class="layui-td-gray">奖罚描述</td>
			<td colspan="5">{$detail.remark|default=''}</td>
		</tr>
	</table>
</form>
{/block}
<!-- /主体 -->

<!-- 脚本 -->
{block name="script"}
<script>
	var moduleInit = ['tool'];

	function gouguInit() {
		var tool = layui.tool;

	}
</script>
{/block}
<!-- /脚本 -->